//饼图
const data = {
    labels: [
        '男',
        '女',
    ],
    datasets: [{
        label: 'My First Dataset',
        data: [19,11],
        backgroundColor: [
            'rgb(255, 99, 132)',
            'rgb(54, 162, 235)',
        ],
        hoverOffset: 4
    }]
};

new Chart(document.getElementById("myChart"),{
    type:'pie',
    data:data,
})